import Vue from 'vue';
import App from './app.vue';

import vueRouter from 'vue-router';

import temp from './components/temp.vue';
import home from './components/Home.vue';
import vueResource from 'vue-resource';
Vue.use(vueResource);
/*
import shopcar from './components/shopcar/car.vue';
import newslist from './components/news/newslist.vue';
import newsinfo from './components/news/newsinfo.vue';
*/
import { Swipe, SwipeItem } from 'mint-ui';




Vue.use(vueRouter);
var router1 = new vueRouter({
    linkActiveClass:'mui-active',  //改变路由激活时的class名称
    routes:[
        {path:'/home',component:home},   //首页
        {path:'/shopcar',component:temp},  // 购物车
        {path:'/news/newslist',component:temp}, //新闻资讯列表页面
        {path:'/news/newsinfo/:id',component:temp}  // 新闻资讯详情页面
    ]
    });

import 'mint-ui/lib/style.min.css';
import mintui from 'mint-ui';
import '../statics/mui/dist/css/mui.css';
Vue.use(mintui);
new Vue({
        el:'#app',

            router:router1,

        render:c=>c(App)
});

